Skip to content

Conversation

@DavidBert
Copy link
Collaborator

@DavidBert DavidBert commented Oct 8, 2025

This commit adds support for the Photon image generation model:

  • PhotonTransformer2DModel: Core transformer architecture
  • PhotonPipeline: Text-to-image generation pipeline
  • Attention processor updates for Photon-specific attention mechanism
  • Conversion script for loading Photon checkpoints
  • Documentation and tests

What does this PR do?

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DavidBert DavidBert force-pushed the photon branch 11 times, most recently from 4aeccfe to ff28f65 Compare October 15, 2025 13:39
@DavidBert DavidBert force-pushed the photon branch 2 times, most recently from f105dff to 8de7b92 Compare October 21, 2025 07:29
DavidBert and others added 27 commits October 21, 2025 14:58
david-PHR pushed a commit that referenced this pull request Feb 4, 2026
* flux2-klein

* Apply suggestions from code review

Co-authored-by: Sayak Paul <[email protected]>

* Klein tests (#2)

* tests

* up

* tests

* up

* support step-distilled

* Apply suggestions from code review

Co-authored-by: dg845 <[email protected]>

* Apply suggestions from code review

Co-authored-by: dg845 <[email protected]>

* doc string etc

* style

* more

* copies

* klein lora training scripts (#3)

* initial commit

* initial commit

* remove remote text encoder

* initial commit

* initial commit

* initial commit

* revert

* img2img fix

* text encoder + tokenizer

* text encoder + tokenizer

* update readme

* guidance

* guidance

* guidance

* test

* test

* revert changes not needed for the non klein model

* Update examples/dreambooth/train_dreambooth_lora_flux2_klein.py

Co-authored-by: Sayak Paul <[email protected]>

* fix guidance

* fix validation

* fix validation

* fix validation

* fix path

* space

---------

Co-authored-by: Sayak Paul <[email protected]>

* style

* Update src/diffusers/pipelines/flux2/pipeline_flux2_klein.py

* Apply style fixes

* auto pipeline

---------

Co-authored-by: Sayak Paul <[email protected]>
Co-authored-by: dg845 <[email protected]>
Co-authored-by: Linoy Tsaban <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants